import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}


// 神椰勋章配置列表
export function advertisementList(query) {
  return request({
    url: '/shenye/advertisement/config/list',
    method: 'get',
    params: query
  })
}
//平台NFR、商户NFR下拉
export function nfrSelect() {
    return request({
      url: '/equity/card/config/v1/nfrSelect',
      method: 'get',
    })
  }

//查询配置推荐资产列表 不分页-h5
export function classificationList() {
    return request({
      url: '/shenye/douyin/classification/v1/h5/list',
      method: 'get',
    })
}
//获取神椰抖音分类 详情
export function classificationDetail() {
    return request({
      url: '/shenye/douyin/classification/v1/detail',
      method: 'get',
    })
}

//保存神椰抖音分类
export function saveClassification(data) {
    return request({
      url: '/shenye/douyin/classification/v1/save',
      method: 'put',
      data: data
    })
}



//新增-修改神椰抖音图片广告
export function advertise(data) {
    return request({
      url: '/shenye/douyin/advertise', 
      method: 'post',
      data: data
    })
}
//神椰抖音图片广告列表
export function advertiseList() {
    return request({
      url: '/shenye/douyin/advertise/list',
      method: 'get',
    })
}
//新增-修改抖音分类导航
export function navigation(data) {
    return request({
      url: '/shenye/douyin/advertise/add/navigation', 
      method: 'post',
      data: data
    })
}
//神椰抖音分类导航列表
export function navigationList() {
    return request({
      url: '/shenye/douyin/advertise/navigationList',
      method: 'get',
    })
}
//神椰抖音分类导航下拉框标签
export function tagList() {
    return request({
      url: '/shenye/douyin/advertise/tag/list',
      method: 'get',
    })
}

//查询神椰抖音导航栏显示类型
export function getShowType() {
  return request({
    url: '/shenye/douyin/advertise/navigation/show/type',
    method: 'get',
  })
}

//保存神椰抖音分类
export function saveShowType(data) {
  return request({
    url: '/shenye/douyin/advertise/navigation/show/type',
    method: 'put',
    data: data
  })
}
//查询神椰抖音首页类型
export function indexType() {
  return request({
    url: '/shenye/douyin/advertise/index/type',
    method: 'get',
  })
}
//查询神椰抖音首页类型
export function modifyIndexType(data) {
  return request({
    url: '/shenye/douyin/advertise/index/type',
    method: 'put',
    data
  })
}





//获取 神椰抖音积分兑换商品配置 详情
export function integralClassList() {
  return request({
    url: '/shenye/douyin/integral/exchange/config/v1/detail',
    method: 'get',
  })
}

//保存神椰抖音积分兑换商品配置
export function saveIntegralClass(data) {
  return request({
    url: '/shenye/douyin/integral/exchange/config/v1/save',
    method: 'put',
    data: data
  })
}

//仿照 H5 查询 神椰抖音积分兑换商品配置 列表 不分页
export function integralClassListH5() {
  return request({
    url: '/shenye/douyin/integral/exchange/config/v1/h5/list',
    method: 'get',
  })
}

//查询旅游打卡首页类型
export function footprintIndexType() {
  return request({
    url: '/douyin/video/footprint/index/type',
    method: 'get',
  })
}
//修改旅游打卡首页类型
export function modifyfootprintIndexType(data) {
  return request({
    url: '/douyin/video/footprint/index/type',
    method: 'put',
    data
  })
}